//
//  Child.m
//  kvo-oc
//
//  Created by 看着太阳吃烧饼 on 15/5/16.
//  Copyright (c) 2015年 看着太阳吃烧饼. All rights reserved.
//

#import "Child.h"

@implementation Child

- (instancetype)init {
    if (self = [super init]) {
        _cleanValue = 10;
        _happyValue = 10;
        [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(timeAction:) userInfo:nil repeats:YES];
    }
    return self;
}

- (void)timeAction:(NSTimer *)timer {
    self.cleanValue = _cleanValue - 1;
    self.happyValue = _happyValue - 1;
}
@end
